From b988d46a49abccb54f11dc41618e2db41f0f2f77 Mon Sep 17 00:00:00 2001 From: Tim Deegan Date: Wed, 6 Dec 2006 10:05:41 +0000 Subject: [PATCH] Fixes a mistake in changeset 12732 Signed-off-by: Xiaohui Xin Signed-off-by: Anthony Xu Signed-off-by: Dexuan Cui --- xen/arch/x86/mm/shadow/common.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/mm/shadow/common.c b/xen/arch/x86/mm/shadow/common.c index 1f295758d8..881f91a81d 100644 --- a/xen/arch/x86/mm/shadow/common.c +++ b/xen/arch/x86/mm/shadow/common.c @@ -1280,7 +1280,7 @@ sh_gfn_to_mfn_foreign(struct domain *d, unsigned long gpfn) * Instead, just count the number of l3es from zero. It's safe * to do this because we already checked that the gfn is within * the bounds of the p2m. */ - l3e += (((addr) & VADDR_MASK) >> L3_PAGETABLE_SHIFT); + l3e += (addr >> L3_PAGETABLE_SHIFT); #else l3e += l3_table_offset(addr); #endif -- 2.30.2